﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace RedisInAction
{
    public enum Serialdate
    {
        [Description("yyyy")]
        yyyy,
        [Description("yyyyMM")]
        yyyyMM,
        [Description("yyyyMMdd")]
        yyyyMMdd,
        [Description("yyMMdd")]
        yyMMdd,
    }

   /// <summary>
   /// 单号的配置类（一般用数据表存储）
   /// </summary>
    public class SysNoConfig
    {
        /// <summary>
        /// 单号的编号
        /// </summary>
        public string fcode { get; set; }
        /// <summary>
        /// 单号的前序
        /// </summary>
        public string fprefix { get; set; }
        /// <summary>
        /// 日期的格式(yyMMdd yyyymmdd)
        /// </summary>
        public string fserialdate { get; set; }
        /// <summary>
        /// 流水号长度
        /// </summary>
        public int  fseriallength { get; set; }
        /// <summary>
        /// 随机数字的长度
        /// </summary>
        public int frandomlength { get; set; }

    } 
}
